package com.gaohe.service;

import com.gaohe.mapper.ManagerMapper;
import com.gaohe.mapper.UserMapper;
import com.gaohe.pojo.Manager;
import com.gaohe.pojo.User;
import com.gaohe.untils.MybatisUntils;
import org.apache.ibatis.session.SqlSession;

public class ManagerService {
    public Manager findByUsername(String username) {
        SqlSession sqlSession = MybatisUntils.getSqlSession(false);
        ManagerMapper managerMapper = sqlSession.getMapper(ManagerMapper.class);
        Manager manager = managerMapper.findByUsername(username);
        return manager;
    }
}
